package com.qfedu.tantu.controller;

import com.qfedu.tantu.dto.Attractionsdto;
import com.qfedu.tantu.service.intf.AttractionsDtoService;
import com.qfedu.tantu.vo.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * YoungMan, may the force be with you.
 *
 * @Author: 吃个小布丁吧
 * @Date: 2022/07/01/19:57
 */
@RestController
@RequestMapping("/api/attdto/")
@Api("景点内部")
@CrossOrigin
public class AttDtoController {
    @Resource
    private AttractionsDtoService service;
    @ApiOperation("景点列表")
    @GetMapping("lookName.do")
    public R lookName(Attractionsdto dto){
        return service.lookName(dto);
    }
    @GetMapping("selectById.do")
    public R selectById(int id){
        return service.selectById(id);
    }

}
